package com.fuhaiwei.struts.action;

import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import com.fuhaiwei.basic.spring.BeanFactory;
import com.fuhaiwei.basic.utils.Logger;
import com.fuhaiwei.domain.model.UserUtils;

public class DefaultAction extends AbstractValidationAction implements
		UserUtils, SessionAware {

	private String tip;
	private Map<String, Object> session;

	public String execute() throws Exception {
		Logger logger = (Logger) BeanFactory.getBean("logger");
		logger.info("Using DefaultAction");
		return SUCCESS;
	}

	public String getTip() {
		return tip;
	}

	public void setTip(String tip) {
		this.tip = tip;
	}

	public Map<String, Object> getSession() {
		return session;
	}

	public void setSession(Map<String, Object> session) {
		this.session = session;
	}

}
